<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改商品详情')"/>
                                                                                                                                                                                                                                                                                                            </head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-details-edit" th:object="${productDetails}">
                <input name="keyId" th:field="*{keyId}" type="hidden">
                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">id
                                ：</label>
                            <div class="col-sm-8">
                                <input name="keyId" th:field="*{keyId}" class="form-control"
                                       type="text" required>
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">产品id
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productId" th:field="*{productId}" class="form-control"
                                       type="text" required>
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">商品详情
                                ：</label>
                            <div class="col-sm-8">
                                <input name="description" th:field="*{description}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        </form>
</div>
<th:block th:include="include :: footer"/>
                                                                                                                                                                                                                                                                                                            <script th:inline="javascript">
    var prefix = ctx + "product/details";
            $("#form-details-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-details-edit').serialize());
        }
    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </script>
</body>
</html>